//
//  MKTChatItem_0_TVCell.m
//  MKUITestApp
//
//  Created by 苏尚进 on 2021/7/9.
//  Copyright © 2021 moon. All rights reserved.
//

#import "MKTChatItem_0_TVCell.h"

@implementation MKTChatItem_0_TVCell
+ (void)load{
    [self registerTableViewCellFor:[MKTChatItem_0 class]];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.lineView = [[UIView alloc] init];
        self.lineView.backgroundColor = [UIColor mk_colorWithLight:[UIColor grayColor] dark:[UIColor lightTextColor]];
        [self.contentView addSubview:self.lineView];
    }
    return self;
}
- (void)customLayoutSubviews{
    [super customLayoutSubviews];
    CGRect bounds = self.contentView.bounds;
    UIEdgeInsets insets = UIEdgeInsetsMake(0, 10, 0, 10);
    CGRect f1 = UIEdgeInsetsInsetRect(bounds, insets);
    f1.size.height = 1.0/[UIScreen mainScreen].scale;
    MKCGRectAlignMidToRect(&f1, MKCGAxisX, bounds);
    self.lineView.frame = f1;
}
+ (CGFloat)heightWithTableView:(UITableView *)tableView cellModel:(__kindof MKUITableViewCellModel *)cellModel{
    return 5;
}
@end
